//
//  SEGUrlAddress.h
//  Commom
//
//  Created by 山刘 on 2019/3/28.
//  Copyright © 2019年 山刘. All rights reserved.
//

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN


#define kNewShareURLPre @"/h5/home-page-remould/index.html" //4.3.7版本新增分享出去的前缀，拼接在根地址后面
#define kIntegarlExchangeRecord [NSString stringWithFormat:@"%@%@", kClientRootURL,@"/h5/bonuses-h5-v2/index.html#/exchangeRecord"]//积分商城2.0兑换记录
#define kIntegarlHelpCenter [NSString stringWithFormat:@"%@%@",kClientRootURL,@"/h5/bonuses-h5/index.html?router=helpCenter"]//帮助中心
#define kHomeService [NSString stringWithFormat:@"%@%@",kClientRootURL, @"/h5/homeService/"]    //到家服务H5地址
#define kIntegarlShop [NSString stringWithFormat:@"%@%@", kClientRootURL,@"/h5/bonuses-h5-v2/index.html#/"] //积分商场2.0主页
#define kUhomeUseRegulation [NSString stringWithFormat:@"%@/%@%@",kClientRootURL,@"h5",[NSString stringWithFormat:@"/protocol/disclaimer.html?app_platform_code=%@&company_platform_code=%@",kAppPlatformCode,kAppPlatformCode]] //使用服务条例
#define kPaperlessAgreement [NSString stringWithFormat:@"%@%@", kClientRootURL,@"/h5/agreement/index.html"] //无纸化协议
//#define kWebActivity [SEGUrlAddress segWebActivity] //活动抽奖
#define kWebActivity(userID) [SEGUrlAddress segWebActivity:userID] //活动抽奖
#define kWebCommunityInfo(A) [SEGUrlAddress segWebCommunityInfo:A] //社区资讯
#define kWebCMHKYIKATONG [SEGUrlAddress segWebCMHK_YIKATOG] //招商一卡通
#define kWebCMHKPayOnline(ServerURL, CustID) [SEGUrlAddress segWebCMHKPayOnline:ServerURL custID:CustID] //招商在线缴费
// #define kWebDigitalCommunity [SEGUrlAddress segWebDigitalCommunity] //数字社区
#define kWebDigitalCommunity(accountType, submitAuthFlag, communityID) [SEGUrlAddress segWebDigitalCommunityWithAccountType:accountType submitAuthFlag:submitAuthFlag communityID:communityID] //数字社区
// #define kWebVisitorManagement [SEGUrlAddress segWebVisitorManagement] //访客管理
#define kWebVisitorManagement(JobCommunity, TEL, UserName) [SEGUrlAddress segWebVisitorManagementWithOrganizationID:(JobCommunity) tel:(TEL) userName:(UserName)] //访客管理
#define kIntegarlCommodityDetail(A) [SEGUrlAddress segWebIntegralMall:A] //积分商城2.0商品详情页
#define kIntegarlLvcondition [NSString stringWithFormat:@"%@%@", kClientRootURL,@"/h5/bonuses-h5/index.html?router=lvcondition"]//等级
#define kWebMutalAidStategy [NSString stringWithFormat:@"%@%@", kClientRootURL,@"/h5/mutualStrategy/mutualPage.html"] //邻里圈-互助攻略
//新调查
#define kNewSurvey(A) [SEGUrlAddress segNewSurvey:A]

@interface SEGUrlAddress : NSObject
/**
 * 新调查
 * @author Sam
 */
+(NSString*)segNewSurvey:(NSString*)code;

/**
 * 活动抽奖,签到有礼（好运有礼）
 * @author Helen
 */
+(NSString*)segWebActivity:(NSString *)userID;

/**
 * 社区资讯
 * @author Helen
 */
+(NSString*)segWebCommunityInfo:(NSString*)objId;

/**
 * 招商一卡通
 * @author Helen
 */
+(NSString *)segWebCMHK_YIKATOG;

/**
 * 招商在线缴费
 * @author Helen
 * @param serviceUrl  字典中取服务地址
 */
+(NSString *)segWebCMHKPayOnline:(NSString *)serviceUrl custID:(NSString *)custID;

/**
 * 数字社区
 * @author Helen
 * @param accountType accountType
 * @param submitAuthFlag submitAuthFlag
 * @param communityID communityID
 */
+(NSString *)segWebDigitalCommunityWithAccountType:(NSString *)accountType submitAuthFlag:(NSString *)submitAuthFlag communityID:(NSString *)communityID;

/**
 * 访客管理
 * @author Helen
 * @param  organizationID organizationID
 * @param  tel  tel
 * @param  userName userName
 */
+(NSString*)segWebVisitorManagementWithOrganizationID:(NSString *)organizationID tel:(NSString *)tel userName:(NSString *)userName;

/**
 * 积分商城2.0商品详情页
 * @author Helen
 * @param href  拼接后缀
 */
+(NSString *)segWebIntegralMall:(NSString *)href;
@end

NS_ASSUME_NONNULL_END
